﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="shopcarTest_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        购物车产品类需要实现IProduct接口，<br />
        string GetPKFieldName(); 返回存储主键的属性名<br />
        string GetPriceFieldName();返回存储价格的属性名<br />
        注意大小写<br />
        <br />
    
        添加产品到购物车<br />
        TestP1<br />
        ID<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        ,NAME<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        ,PRICE<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        ,BUYCOUNT<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="add test p1" />
        <asp:Button ID="Button4" runat="server" Text="remove by ID" 
            onclick="Button4_Click" />
        <asp:Button ID="Button5" runat="server" Text="set count by id" 
            onclick="Button5_Click" />
        <br />
        TestP2<br />
        ID<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
        ,NAME<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
        ,PRICE<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
        ,BUYCOUNT<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="add test p2" />
        <asp:Button ID="Button6" runat="server" Text="remove by ID" 
            onclick="Button6_Click" />
        <asp:Button ID="Button7" runat="server" Text="set count by id" 
            onclick="Button7_Click" />
        <br />
        <br />
        <asp:Button ID="Button3" runat="server" Text="go to car" 
            onclick="Button3_Click" />
    
    </div>
    </form>
</body>
</html>
